<?php
//Duong dan den thu muc chua ung dung
defined('APPLICATION_PATH')
	|| define('APPLICATION_PATH', 
			  realpath(dirname(__FILE__) . '/application'));
//Khai bao phan doan su dung cho ung
defined('APPLICATION_ENV')
    || define('APPLICATION_ENV',
              (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV')
                                         : 'developer'));

//Nap duong dan den cac thu vien se su dung trong ung dung
set_include_path(implode(PATH_SEPARATOR, array(
    dirname(__FILE__) . '/library',
    get_include_path(),
)));

//--------------- KHAI BAO DUONG DAN THUC TOI CAC THU MUC ----------------------
//Đường dẫn tới thư mục public
define('PUBLIC_PATH', realpath( dirname(__FILE__). '/public'));
define('TEMP_PATH', PUBLIC_PATH. '/tmp');
define('FILES_PATH', PUBLIC_PATH. '/files');
define('SCRIPTS_PATH', PUBLIC_PATH. '/scripts');
define('CAPTCHA_PATH', PUBLIC_PATH. '/captcha');
define('BLOCK_PATH',APPLICATION_PATH . '/blocks');
define('CONFIG_PATH',APPLICATION_PATH . '/configs');
define('CACHE_PATH',APPLICATION_PATH . '/caches');

//Đường dẫn tới thư mục templates
define('TEMPLATE_PATH', realpath(PUBLIC_PATH . '/templates'));

//--------------- KHAI BAO DUONG DAN URL TOI CAC THU MUC ----------------------

//Duong dan toi thu muc ung dung
define('APPLICATION_URL', '/zfo');
define('SCRIPTS_URL', APPLICATION_URL.'/public/scripts');

//Đường dẫn tới thư mục /template
define('TEMPLATE_URL', '/public/templates');
define('CAPTCHA_URL', APPLICATION_URL .'/public/captcha');

define('FILES_URL', APPLICATION_URL . '/public/files');